package com.hospital.hospital.mapper;

import com.hospital.hospital.bean.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper {

    List<Department> queryAll() throws Exception;

    void insertDep(Department department)throws Exception;

    void deleteDep(Integer departmentId)throws Exception;

    List<Department> queryLike(String likestr)throws Exception;

    void qh(Department department) throws  Exception;

    Department queryById(Integer departmentId) throws Exception;

    void set(Department department) throws Exception;

    List<Department> queryByPage(Integer p);
}
